from common.basepage import BasePage
class MainPage(BasePage):
    def __init__(self,driver=None):
        super().__init__(driver)
        self.superadmin_loc = "id=s-menu-superadmin"
        self.superadmin_frame_name = "iframe-superadmin"
        self.assert_element_loc = "id=s-menu-superadmin"
        self.assert_attribute_name = "data-order"
    def click_superadmin(self):
        self.click_button(self.superadmin_loc)

    def get_assert_text(self):
        return self.get_attr(self.assert_element_loc, self.assert_attribute_name)